import request from "@/utils/request";

// 查询专业信息列表
export function listProfession(query) {
  return request({
    url: "/system/profession/list",
    method: "get",
    params: query,
  });
}

// 查询专业信息详细
export function getProfession(id) {
  return request({
    url: "/system/profession/" + id,
    method: "get",
  });
}

// 新增专业信息
export function addProfession(data) {
  return request({
    url: "/system/profession",
    method: "post",
    data: data,
  });
}

// 修改专业信息
export function updateProfession(data) {
  return request({
    url: "/system/profession",
    method: "put",
    data: data,
  });
}

// 删除专业信息
export function delProfession(id) {
  return request({
    url: "/system/profession/" + id,
    method: "delete",
  });
}
